package pages;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;

/**
 * Created with IntelliJ IDEA.
 * User: admin
 * Date: 09.06.14
 * Time: 17:25
 * To change this template use File | Settings | File Templates.
 */
public class SectionNotebookPage extends BasePage {
    public static final String URL = "http://rozetka.com.ua/computers-notebooks/c80253/";
    public SectionNotebookPage(WebDriver driver) {
        super(driver, URL);
    }
    public boolean isLoaded() {
        return driver.findElements(By.id("//h4[@class='m-cat-l-i-title' and contains(text(),'Ноутбуки')]")).size() == 1;
    }

    @Override
    public String getURL() {
        return URL;
    }


}
